go/types.Checker.softErrorf (method)
31 uses
go/types (current package)
assignments.go#L476: check.softErrorf(pos, _NoNewVar, "no new variables on left side of :=")
builtins.go#L860: check.softErrorf(x, code, "%s not supported as argument to %s for go1.18 (see issue #50937)", x, predeclaredFuncs[id].name)
call.go#L21: check.softErrorf(inNode(ix.Orig, ix.Lbrack), _UnsupportedFeature, "function instantiation requires go1.18 or later")
call.go#L88: check.softErrorf(atPos(pos), _InvalidTypeArg, "%s", err)
call.go#L385: check.softErrorf(inNode(call.Fun, ix.Lbrack), _UnsupportedFeature, "function instantiation requires go1.18 or later")
call.go#L387: check.softErrorf(inNode(call, call.Lparen), _UnsupportedFeature, "implicit function instantiation requires go1.18 or later")
decl.go#L800: check.softErrorf(fdecl.Name, _BadDecl, "parameterized function is missing function body")
errors.go#L222: func (check *Checker) softErrorf(at positioner, code errorCode, format string, args ...any) {
labels.go#L42: check.softErrorf(lbl, _UnusedLabel, "label %s declared but not used", lbl.name)
labels.go#L140: check.softErrorf(lbl, _DuplicateLabel, "label %s already declared", name)
labels.go#L155: check.softErrorf(
resolver.go#L385: check.softErrorf(d.spec.TypeParams.List[0], _UnsupportedFeature, "type parameters require go1.18 or later")
resolver.go#L405: check.softErrorf(d.decl.Type.TypeParams.List[0], code, "func %s must have no type parameters", name)
resolver.go#L410: check.softErrorf(d.decl, code, "func %s must have no arguments and no return values", name)
resolver.go#L420: check.softErrorf(obj, _MissingInitBody, "missing function body")
resolver.go#L443: check.softErrorf(d.decl.Type.TypeParams.List[0], _UnsupportedFeature, "type parameters require go1.18 or later")
resolver.go#L705: check.softErrorf(obj, _UnusedImport, "%q imported but not used", path)
resolver.go#L707: check.softErrorf(obj, _UnusedImport, "%q imported but not used as %s", path, obj.name)
signature.go#L289: check.softErrorf(t, _MisplacedDotDotDot, "can only use ... with final parameter in list")
stmt.go#L73: check.softErrorf(v, _UnusedVar, "%s declared but not used", v.name)
stmt.go#L663: check.softErrorf(lhs, _NoNewVar, "no new variable on left side of :=")
stmt.go#L748: check.softErrorf(lhs, _UnusedVar, "%s declared but not used", lhs.Name)
stmt.go#L814: check.softErrorf(s, _InvalidPostDecl, "cannot declare in post statement")
stmt.go#L840: check.softErrorf(s.Value, _InvalidIterVar, "range over %s permits only one iteration variable", &x)
stmt.go#L850: check.softErrorf(&x, _InvalidRangeExpr, "cannot range over %s", &x)
stmt.go#L852: check.softErrorf(&x, _InvalidRangeExpr, "cannot range over %s (%s)", &x, cause)
typexpr.go#L167: check.softErrorf(e, _MisplacedConstraintIface, "interface is (or embeds) comparable")
typexpr.go#L169: check.softErrorf(e, _MisplacedConstraintIface, "interface contains type constraints")
typexpr.go#L279: check.softErrorf(inNode(e, ix.Lbrack), _UnsupportedFeature, "type instantiation requires go1.18 or later")
typexpr.go#L482: check.softErrorf(atPos(pos), _InvalidTypeArg, err.Error())
union.go#L130: check.softErrorf(tlist[i], _InvalidUnion, "overlapping terms %s and %s", t, terms[j])